#!/bin/bash
echo "Step T3 Automatic Fiber Tracking"
for FILE in /data/fib/*.fib.gz; 
do 
    echo "source=" $FILE; 
    dsi_studio --action=atk --source=$FILE --track_id=Arcuate --output="/data/track" > /data/logs/3.atk.log 

    cp /data/fib/*/*.tt.gz /data/atk
done